import _http from '@/utils/http'

export default {
  confirmPassword(params, loading, headers) {
    return _http(
      'post',
      {
        url: '/ums/user/confirmPassword',
        apiName: '登陆后确认密码-公司用户',
      },
      params,
      loading,
      headers
    )
  },
  mySupplierList(params, loading, headers) {
    return _http(
      'post',
      {
        url: '/ums/shop/relation/mySupplierList',
        apiName: '我的供应商下拉列表',
      },
      params,
      loading,
      headers
    )
  },
  offlineGoodsSearch(params, loading, headers) {
    return _http(
      'post',
      {
        url: '/eas/off/goods/search',
        apiName: '线下商品查询-分页',
      },
      params,
      loading,
      headers
    )
  },
  operatorList(params, loading, headers) {
    return _http(
      'post',
      {
        url: '/eas/off/product/operator/list',
        apiName: '所有产品运营商',
      },
      params,
      loading,
      headers
    )
  },
  offGoodsSearch(params, loading, headers) {
    return _http(
      'post',
      {
        url: '/eas/off/goods/search',
        apiName: '查询-分页',
      },
      params,
      loading,
      headers
    )
  },
  goodsMySupplierSearch(params, loading, headers) {
    return _http(
      'post',
      {
        url: '/eas/off/goods/mySupplier/search',
        apiName: '所有供应商商品查询-分页',
      },
      params,
      loading,
      headers
    )
  },
  relationMySupplier(params, loading, headers) {
    return _http(
      'post',
      {
        url: '/ums/shop/relation/mySupplier',
        apiName: '我的供应商',
      },
      params,
      loading,
      headers
    )
  },
  shopInfo(params, loading, headers) {
    return _http(
      'post',
      {
        url: '/ums/shop/info',
        apiName: '我的商铺信息',
      },
      params,
      loading,
      headers
    )
  },
  goodsInfoDetail(params, loading, headers) {
    return _http('post', {
      url: '/eas/manage/goodsInfo/detail',
      apiName: '商品详情',
    }, params, loading, headers)
  },
  goodsInfoRechargeType(params, loading, headers) {
    return _http('post', {
      url: '/eas/manage/goodsInfo/list/rechargeType',
      apiName: '品牌下的充值类型列表',
    }, params, loading, headers)
  },
  orderDetail(params, loading, headers) {
    return _http('post', {
      url: '/eas/manage/order/qry/detail',
      apiName: '详情查询',
    }, params, loading, headers)
  },
  orderRevote(params, loading, headers) {
    return _http('post', {
      url: '/eas/manage/order/revote',
      apiName: '订单核减',
    }, params, loading, headers)
  },
  sucaiLoad(params, loading, headers) {
    return _http('post', {
      url: '/ums/sucai/load',
      apiName: '素材拉取',
    }, params, loading, headers)
  },
  sucaiTypeLoadAll(params, loading, headers) {
    return _http('post', {
      url: '/ums/sucai/type/load/all',
      apiName: '拉取所有分类',
    }, params, loading, headers)
  },
}
